ostree-prepare-root: remove duplicate transient directory
authorWill Sabransky <wsabransky89@gmail.com>
Sun, 20 Jul 2025 22:05:44 +0000 (17:05 -0500)
committerGitHub <noreply@github.com>
Sun, 20 Jul 2025 22:05:44 +0000 (17:05 -0500)
Only create the transient etc directory once to prevent failures due to directory existence.

src/libotcore/otcore-prepare-root.c

index a52d711d26aa8cf5b8c1c480e3e100a3f8de1005..893ef555e1c4e772b0f257c01276f70c230c9df5 100644 (file)
@@ -408,7 +408,7 @@ otcore_mount_etc (GKeyFile *config, GVariantBuilder *metadata_builder, const cha
       {
         const char *path;
         int mode;
-      } subdirs[] = { { ovldir, 0700 }, { upperdir, 0755 }, { workdir, 0755 } };
+      } subdirs[] = { { upperdir, 0755 }, { workdir, 0755 } };
       for (int i = 0; i < G_N_ELEMENTS (subdirs); i++)
         {
           if (mkdirat (AT_FDCWD, subdirs[i].path, subdirs[i].mode) < 0)